package com.goodwilldd.myapp.predicate;

import com.goodwilldd.myapp.entities.QPerson;
import com.mysema.query.types.Predicate;

public class PersonPredicates {
	public static Predicate lastNameIsLike(final String searchTerm) {
        QPerson person = QPerson.person;
        return person.lastName.startsWithIgnoreCase(searchTerm);
    }
}
